package mytool;
/**
 * 
 * @author heantai
 *
 */
public class Time {
	private static long start;
	private static long end;
	public static void start(){
		start = System.currentTimeMillis();
	}
	public static void end(){
		end = System.currentTimeMillis();
		System.out.println("Time Elapsed "+(end-start)+"ms.");
	}
	public static void end(String name){
		end = System.currentTimeMillis();
		System.out.println("The "+name+" takes "+(end-start)+"ms.");
	}
	public static double second(double second){
		return second*1000;
	}
	public static double minute(double minute){
		return second(minute*60);
	}
	public static double hour(double hour){
		return minute(hour*60);
	}
}
